package models;

import javax.persistence.*;
import java.util.Date;

/**
 * <p>Project: fsp</p>
 * <p>Title: Customer.java</p>
 * <p>Description: </p>
 * <p>Copyright (c) 2014 Sunlights.cc</p>
 * <p>All Rights Reserved.</p>
 *
 * @author <a href="mailto:jiaming.wang@sunlights.cc">wangJiaMing</a>
 */
@Entity
@Table(name = "C_CUSTOMER")
public class Customer extends IdEntity {
    @Column(length = 30, name = "CUSTOMER_ID")
    private String customerId;
    @Column(name = "AUTHENTICATION_ID")
    private Long authenticationId;
    @Column(length = 20, name = "LOGIN_ID")
    private String loginId;
    @Column(length = 50, name = "NICK_NAME")
    private String nickName;
    @Column(length = 40, name = "LOGIN_PASSWORD")
    private String loginPassWord;
    @Column(length = 50, name = "REG_CHANNEL")
    private String regChannel;// 注册渠道 M	手机渠道 W	互联网渠道
    @Column(length = 50, name = "REG_WAY")
    private String regWay;//注册方式 M.手机 E.邮箱
    @Column(length = 20, name = "REAL_NAME")
    private String realName;//真实姓名
    @Column(length = 50, name = "IDENTITY_TYPER")
    private String identityTyper;//证件类型 I	居民身份证
    @Column(length = 30, name = "IDENTITY_NUMBER")
    private String identityNumber;//证件号码
    @Column(length = 40, name = "PIC_WAY")
    private String picWay;//用户图像存放路径
    @Column(length = 50, name = "CUSTOMER_TYPE")
    private String customerType;//客户类型B.商户   C.个人  一期默认为C类
    @Column(length = 50, name = "PROPERTY")
    private String property;//用户属性1.买家  2. 卖家  一期默认为买家
    @Column(length = 50, name = "DEVICE_NO")
    private String deviceNo;//注册设备号
    @Column(length = 10, name = "REFERRAL_CODE")
    private String referralCode;//推荐码
    @Column(length = 50, name = "EMAIL")
    private String email;//绑定邮箱
    @Column(length = 20, name = "QQ")
    private String qq;//绑定QQ
    @Column(length = 30, name = "WEIXIN")
    private String weixin;//  绑定微信号
    @Column(length = 30, name = "WEIBO")
    private String weibo;//绑定微博号
    @Column(length = 11, name = "MOBILE")
    private String mobile;// 绑定手机
    @Column(length = 50, name = "STATUS")
    private String status;//用户状态 T.正常 U.已锁定
    @Column(length = 19, name = "recommend_phone")
    private String recommendPhone;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME")
    private Date createTime;
    @Column(name = "CREATE_BY", length = 30)
    private String createBy;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    @Column(name = "UPDATE_BY", length = 30)
    private String updateBy;

    public Customer() {
    }

    public Long getAuthenticationId() {
        return authenticationId;
    }

    public void setAuthenticationId(Long authenticationId) {
        this.authenticationId = authenticationId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getLoginPassWord() {
        return loginPassWord;
    }

    public void setLoginPassWord(String loginPassWord) {
        this.loginPassWord = loginPassWord;
    }

    public String getRegChannel() {
        return regChannel;
    }

    public void setRegChannel(String regChannel) {
        this.regChannel = regChannel;
    }

    public String getRegWay() {
        return regWay;
    }

    public void setRegWay(String regWay) {
        this.regWay = regWay;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdentityTyper() {
        return identityTyper;
    }

    public void setIdentityTyper(String identityTyper) {
        this.identityTyper = identityTyper;
    }

    public String getIdentityNumber() {
        return identityNumber;
    }

    public void setIdentityNumber(String identityNumber) {
        this.identityNumber = identityNumber;
    }

    public String getPicWay() {
        return picWay;
    }

    public void setPicWay(String picWay) {
        this.picWay = picWay;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getReferralCode() {
        return referralCode;
    }

    public void setReferralCode(String referralCode) {
        this.referralCode = referralCode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getWeibo() {
        return weibo;
    }

    public void setWeibo(String weibo) {
        this.weibo = weibo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRecommendPhone() {
        return recommendPhone;
    }

    public void setRecommendPhone(String recommendPhone) {
        this.recommendPhone = recommendPhone;
    }
}
